package Vista;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.BoxLayout;
import javax.swing.JButton;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/



public class frmMenuPrincipal extends javax.swing.JFrame {
	private JButton btnClientes;
	private JButton btnReservas;
	private JButton btnAlquileres;
	private JButton btnDescuentos;
	private JButton btnModelos;
	private JButton btnAutomoviles;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				frmMenuPrincipal inst = new frmMenuPrincipal();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public frmMenuPrincipal() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			this.setTitle("Reservas y Alquileres de Automoviles - System");
			getContentPane().setLayout(null);
			{
				btnClientes = new JButton();
				btnClientes.setBounds(30, 36, 152, 55);
				getContentPane().add(btnClientes);
				btnClientes.setText("Clientes");
				btnClientes.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent evt) {
						btnClientesActionPerformed(evt);
					}
				});
			}
			{
				btnReservas = new JButton();
				btnReservas.setBounds(30, 157, 152, 55);
				getContentPane().add(btnReservas);
				btnReservas.setText("Reservas");
				btnReservas.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent evt) {
						btnReservasActionPerformed(evt);
					}
				});
			}
			{
				btnModelos = new JButton();
				btnModelos.setBounds(193, 36, 156, 54);
				getContentPane().add(btnModelos);
				btnModelos.setText("Modelos");
				btnModelos.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent evt) {
						btnModelosActionPerformed(evt);
					}
				});
			}
			{
				btnAlquileres = new JButton();
				btnAlquileres.setBounds(193, 157, 156, 55);
				getContentPane().add(btnAlquileres);
				btnAlquileres.setText("Alquileres");
				btnAlquileres.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent evt) {
						btnAlquileresActionPerformed(evt);
					}
				});
			}
			{
				btnDescuentos = new JButton();
				btnDescuentos.setBounds(193, 95, 156, 57);
				getContentPane().add(btnDescuentos);
				btnDescuentos.setText("Descuentos");
				btnDescuentos.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent evt) {
						btnDescuentosActionPerformed(evt);
					}
				});
			}
			pack();
			setSize(400, 300);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}
	
	private void btnClientesActionPerformed(ActionEvent evt) {
		
		frmClientes frm = new frmClientes();
		frm.setLocationRelativeTo(null);
		frm.setVisible(true);
		
	}
	
	private void btnReservasActionPerformed(ActionEvent evt) {
		frmReservas frm = new frmReservas();
		frm.setLocationRelativeTo(null);
		frm.setVisible(true);
	}
	
	private void btnModelosActionPerformed(ActionEvent evt) {
		frmModelos frm = new frmModelos();
		frm.setLocationRelativeTo(null);
		frm.setVisible(true);
	}
	
	
	private void btnAlquileresActionPerformed(ActionEvent evt) {
		frmAlquileres frm = new frmAlquileres();
		frm.setLocationRelativeTo(null);
		frm.setVisible(true);
	}
	
	private void btnDescuentosActionPerformed(ActionEvent evt) {
		frmAltaDescuento frm = new frmAltaDescuento();
		frm.setLocationRelativeTo(null);
		frm.setVisible(true);
	}

}
